// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /interview/admin/delete */
export async function deleteReportByAdmin(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/interview/admin/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /interview/admin/list/page/vo */
export async function listInterviewReportVoByPageByAdmin(
  body: API.InterviewQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageInterviewReportVO>('/interview/admin/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /interview/answer */
export async function addAnswer(
  body: API.InterviewQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/interview/answer', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /interview/delete */
export async function deleteReport(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/interview/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /interview/generateQuestions */
export async function generateInterviewQuestion(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.generateInterviewQuestionParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListInterviewQuestionVO>('/interview/generateQuestions', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /interview/list/page/vo */
export async function listInterviewReportVoByPage(
  body: API.InterviewQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageInterviewReportVO>('/interview/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /interview/report */
export async function getReportById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getReportByIdParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseDetailedInterviewReportVO>('/interview/report', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
